<script type="text/javascript">
    try {
        ace.settings.loadState('main-container')
    } catch (e) {
    }
</script>
<div id="sidebar" class="sidebar responsive ace-save-state">
    <script type="text/javascript">
        try {
            ace.settings.loadState('sidebar')
        } catch (e) {
        }
    </script>

    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
            <a class="btn btn-success" th:href="@{/count}">
                <i class="ace-icon fa fa-signal"></i>
            </a>
            <a class="btn btn-info" th:href="@{/calendar}">
                <i class="ace-icon fa fa-pencil"></i>
            </a>
            <a class="btn btn-warning" th:href="@{/vote}">
                <i class="ace-icon fa fa-users"></i>
            </a>
            <a class="btn btn-danger" th:href="@{/faq}">
                <i class="ace-icon fa fa-cogs"></i>
            </a>
        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>
            <span class="btn btn-info"></span>
            <span class="btn btn-warning"></span>
            <span class="btn btn-danger"></span>
        </div>
    </div><!-- /.sidebar-shortcuts -->

    <ul class="nav nav-list">
        <li class="active">
            <a th:href="@{/index}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 首页 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/sys"
            th:classappend="${nav eq '资源列表' || nav eq '用户列表' || nav eq '角色列表'} ? 'active open' : ''">
            <a href="#" class="dropdown-toggle">
                <i class="menu-icon fa fa-list"></i>
                <span class="menu-text"> 后台管理 </span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <b class="arrow"></b>

            <ul class="submenu">
                <li th:classappend="${nav eq '资源列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/sys/sysResources" th:href="@{/sys/sysResources/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>权限管理
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '用户列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/sys/sysUser" th:href="@{/sys/sysUser/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>用户管理
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '角色列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/sys/sysRole" th:href="@{/sys/sysRole/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>角色管理
                    </a>
                    <b class="arrow"></b>
                </li>
            </ul>
        </li>

        <li class="" shiro:hasPermission="/houseInfo"
            th:classappend="${nav eq '房屋列表' || nav eq '房屋图像列表' || nav eq '房屋预售列表' || nav eq '房屋租赁列表' ||
            nav eq '租赁物品列表' || nav eq '房产证列表' || nav eq '房屋状态列表' || nav eq '他项权利摘要列表'} ? 'active open' : ''">
            <a href="#" class="dropdown-toggle">
                <i class="menu-icon fa fa-pencil-square-o"></i>
                <span class="menu-text"> 房屋信息 </span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <b class="arrow"></b>

            <ul class="submenu">
                <li th:classappend="${nav eq '房屋列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/houseInfo" th:href="@{/houseInfo/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋信息
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '房屋图像列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/houseImage" th:href="@{/houseImage/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋图像
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '房屋预售列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/houseBooking" th:href="@{/houseBooking/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋预售
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '房屋租赁列表' || nav eq '租赁物品列表'} ? 'active open' : ''">
                    <a class="dropdown-toggle" shiro:hasPermission="/rentingHouse"
                       th:href="@{/rentingHouse/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋租赁管理
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="" th:classappend="${nav eq '房屋租赁列表'} ? 'active' : ''">
                            <a shiro:hasPermission="/rentingHouse"
                               th:href="@{/rentingHouse/getAll}">
                                <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋租赁
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="" th:classappend="${nav eq '租赁物品列表'} ? 'active' : ''">
                            <a shiro:hasPermission="/stuffInfo" th:href="@{/stuffInfo/getAll}">
                                <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>租赁物品信息
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>

                <li th:classappend="${nav eq '房产证列表' || nav eq '房屋状态列表' || nav eq '他项权利摘要列表'} ? 'active open' : ''">
                    <a class="dropdown-toggle" shiro:hasPermission="/propertyOwnershipCertificate">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房产证管理
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>

                    <ul class="submenu">
                        <li class="" th:classappend="${nav eq '房产证列表'} ? 'active' : ''">
                            <a shiro:hasPermission="/propertyOwnershipCertificate"
                               th:href="@{/propertyOwnershipCertificate/getAll}">
                                <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房产证管理
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="" th:classappend="${nav eq '房屋状态列表'} ? 'active' : ''">
                            <a shiro:hasPermission="/houseStatus" th:href="@{/houseStatus/getAll}">
                                <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋状态
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="" th:classappend="${nav eq '他项权利摘要列表'} ? 'active' : ''">
                            <a shiro:hasPermission="/otherRightDigest" th:href="@{/otherRightDigest/getAll}">
                                <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>他项权利摘要
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
            </ul>
        </li>

        <li class="" shiro:hasPermission="/innerMail" th:classappend="${nav eq '站内信列表'} ? 'active' : ''">
            <a th:href="@{/innerMail/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 站内信管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/chatRecord" th:classappend="${nav eq '聊天记录列表'} ? 'active' : ''">
            <a th:href="@{/chatRecord/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 聊天记录管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/companyInfo" th:classappend="${nav eq '公司信息列表'} ? 'active' : ''">
            <a th:href="@{/companyInfo/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 公司信息管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/dealRecordInfo" th:classappend="${nav eq '成交记录列表'} ? 'active' : ''">
            <a th:href="@{/dealRecordInfo/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 成交记录信息管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/discountInfo" th:classappend="${nav eq '折扣列表'} ? 'active' : ''">
            <a th:href="@{/discountInfo/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 折扣信息管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/reminder" th:classappend="${nav eq '提醒列表'} ? 'active' : ''">
            <a th:href="@{/reminder/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 提醒信息管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/suggestInfo" th:classappend="${nav eq '投票列表'} ? 'active' : ''">
            <a th:href="@{/suggestInfo/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 投票信息管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/leaveInfo" th:classappend="${nav eq '请假申请列表'} ? 'active' : ''">
            <a th:href="@{/leaveInfo/getAll}" href="">
                <i class="menu-icon fa fa-tachometer"></i>
                <span class="menu-text"> 请假信息管理 </span>
            </a>
            <b class="arrow"></b>
        </li>

        <li class="" shiro:hasPermission="/activiti"
            th:classappend="${nav eq '流程列表' || nav eq '流程历史列表' || nav eq '我的待办' || nav eq '我的申请'} ? 'active open' : ''">
            <a href="#" class="dropdown-toggle">
                <i class="menu-icon fa fa-pencil-square-o"></i>
                <span class="menu-text"> 流程管理 </span>
                <b class="arrow fa fa-angle-down"></b>
            </a>
            <b class="arrow"></b>

            <ul class="submenu">
                <li th:classappend="${nav eq '流程列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/activiti" th:href="@{/activiti/getAll}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>流程列表
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '流程历史列表'} ? 'active' : ''">
                    <a shiro:hasPermission="/activiti" th:href="@{/activiti/hisWork}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>流程历史列表
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '我的待办'} ? 'active' : ''">
                    <a shiro:hasPermission="/activiti" th:href="@{/activiti/waitingList}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>我的待办
                    </a>
                    <b class="arrow"></b>
                </li>
                <li th:classappend="${nav eq '我的申请'} ? 'active' : ''">
                    <a shiro:hasPermission="/activiti" th:href="@{/activiti/applyList}">
                        <i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>我的申请
                    </a>
                    <b class="arrow"></b>
                </li>
            </ul>
        </li>
    </ul><!-- /.nav-list -->

    <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
        <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state"
           data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
    </div>
</div>
